<?php

class Core_Form_Admin_Storage_Ssh2 extends Form
{
	function init()
	{
		// admin manage fields

		$this -> addChild('yesno', 'is_active', array(
			'label' => 'Active',
			'required' => true,
			'value' => 1
		));
		
		$this -> addChild('yesno', 'is_default', array(
			'label' => 'Default',
			'required' => true,
			'value' => 1
		));
		
		$this -> addChild('yesno', 'is_locked', array(
			'label' => 'Locked',
			'required' => true,
			'value' => 1
		));
		// other fields for rackspace connect
		
		$this -> addChild('text', 'host', array(
			'label' => 'Remote Host',
			'required' => true,
			'rules' => array('required'),
			'desc' => 'SSH Host'
		));
		
		$this -> addChild('text', 'port', array(
			'label' => 'Port',
			'required' => true,
			'rules' => array('required'),
		));
		

		$this -> addChild('text', 'username', array(
			'label' => 'User Name',
			'required' => true,
			'rules' => array('required'),
		));

		$this -> addChild('text', 'password', array(
			'label' => 'Password',
			'required' => true,
			'rules' => array('required'),
		));
		
		$this -> addChild('text', 'basePath', array(
			'label' => 'Base Path',
			'required' => true,
			'rules' => array('required'),
		));
		
		$this -> addChild('text', 'baseUrl', array(
			'label' => 'Base Url',
			'required' => true,
			'rules' => array('required'),
		));

		$this -> addChild('group', '_buttons');
		$this -> _buttons -> addChild('submit', '_submit') -> addChild('cancel', '_cancel');
	}

}
